package data;

import java.util.ArrayList;
import java.util.List;

public class Slide {
	private final int id;
	private final ArrayList<Cell> cells;
	
	public Slide(int id, List<? extends Cell> cells) {
		this.id = id;
		this.cells = new ArrayList<Cell>(cells);
	}
	
	public Slide(int id) {
		this.id = id;
		this.cells = new ArrayList<Cell>();
	}
	
	public int getId() {
		return id;
	}
	
	public List<Cell> getCells() {
		return cells;
	}
	
	public void addCell(Cell cell) {
		cells.add(cell);
	}
	
	@Override
	public String toString() {
		return "Slide " + id;
	}
}
